package com.cskaoyan;

import redis.clients.jedis.Jedis;

/**
 * 创建日期: 2022/08/05 17:28
 *
 * @author ciggar
 */
public class JedisDemo {

    public static void main(String[] args) {

        Jedis jedis = new Jedis("127.0.0.1",6379);

        // 认证密码
        jedis.auth("cskaoyan");


        String username = jedis.get("username");

        System.out.println(username);


    }
}
